<template>
  <v-container>
    <v-row>
      <v-col>
        <v-card>
          <v-card-text>
            <v-alert outlined type="warning" prominent border="left">
              简单的简历实现
            </v-alert>
          </v-card-text>
        </v-card>
      </v-col>
    </v-row>
    <v-row>
      <v-col>
        <v-card>
          <v-card-text class="mt-2">
            <v-row>
              <v-col v-for="(d, index) in infos" :key="index" cols="12">
                {{ d }}
              </v-col>
            </v-row>
          </v-card-text>
        </v-card>
      </v-col>
    </v-row>
  </v-container>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import { Resume } from "@/design-pattern/09-prototype/PrototypeV1";

@Component({})
export default class PageV2 extends Vue {
  // region Prop
  // endregion
  // region Data
  infos: string[] = [];
  // endregion
  // region computed
  // endregion
  // region watch
  // endregion
  // region method
  // endregion
  // region hook
  created() {
    const a = new Resume("张三");
    a.SetPersonalInfo("男", "30");
    a.SetWorkExperience("1999-2010", "xxxx");

    const b = a;
    const c = a;
    c.SetPersonalInfo("男", "24");
    c.SetWorkExperience("1999-2010", "xxxx");
    this.infos.push(...a.Display(), ...b.Display(), ...c.Display());
  }
  // endregion
}
</script>

<style lang="scss"></style>
